export default (axios) => ({
  getUserInfo () {
    return axios.get("/server/user/userInfo")
  },
  login () {
    return axios.post("/server/user/login")
  },
  getNewsList(params) {
    return axios.get("/server/news/newsList", { params })
  },
  getNewsDetails(params) {
    return axios.get("/server/news/newsDetails", { params })
  }
})
